{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "27059b59-e403-4025-bffd-4185ecefc057",
   "metadata": {},
   "outputs": [],
   "source": [
    "import tensorflow as tf\n",
    "import numpy as np\n",
    "x=tf.constant([1,1,5,2,3,2],tf.float32)\n",
    "y=tf.nn.softmax(x)\n",
    "print(\"softmax([1,1,5,2,3,2])=\",y.numpy())\n",
    "print(\"sum(softmax([1,1,5,2,3,2]))=\",sum(y.numpy()))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e33e77e9-c701-4f12-9ed6-6cf73a575e70",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
